package com.joysuch.wwyt.api.basedata.service;

import com.joysuch.wwyt.bp.entity.BpJob;
import com.joysuch.wwyt.dzhapi.dto.BuildDataDto;

import java.util.Map;

public interface BpJobSyncService {
    boolean addSync(BpJob entity);

    boolean addApiSync(BpJob entity, BuildDataDto dto);

    boolean updateSync(BpJob entity);

    boolean apiUpdateSync(BpJob entity, BuildDataDto dto);

    boolean deleteSync(String uniqueId);

    boolean deleteApiSync(String uniqueId, BuildDataDto dto);

    Map<String, String> syncV2ListName();

    boolean syncjob(BpJob entity, Map<String, String> map);

    boolean syncjob(BpJob entity);

    boolean syncApiJob(BpJob entity, BuildDataDto buildDataDto);

    boolean getSyncJob(BpJob job);

    boolean syncjobCross(BpJob jobEntity, String buildId, Long tenentId, String orgCode);

    boolean deleteSyncCross(String uniqueId, Long tenentId, String orgCode, String buildId);
}
